package org.lemon.db.tx;

/**
 * @since 2024-12-13 17:30
 */
public class CommitRecord extends LogRecord{

    public CommitRecord() {
    }

    public CommitRecord(int txNum) {
        super(txNum);
    }

    @Override
    public RecordType op() {
        return RecordType.COMMIT;
    }

    @Override
    public String toString() {
        return "<COMMIT " + this.txNumber() + ">";
    }

    @Override
    protected byte[] encode() {
        return super.encode();
    }
}
